package org.springblade.system.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.springblade.core.tool.api.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Date;

@RestController
@AllArgsConstructor
@RequestMapping("/common")
@Api(value = "通用", tags = "通用")
public class CommonController {
	@GetMapping("/server-time")
	@ApiOperationSupport(order = 1)
	public R<Date> getServerTime() {
		return R.data(new Date());
	}
}
